<HTML><HEAD><TITLE>argc(-Number)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">Operating System</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>argc(-Number)</H1>
Succeeds if Number is the number of arguments given on the command line to
invoke ECLiPSe .


<DL>
<DT><EM>Number</EM></DT>
<DD>Variable or integer.
</DD>
</DL>
<H2>Description</H2>
   Used to find the number of arguments used when invoking ECLiPSe at the
   operating system prompt, including eclipse itself.

<P>

<H3>Modes and Determinism</H3><UL>
<LI>argc(-) is det
</UL>
<H3>Exceptions</H3>
<DL>
<DT><EM>(5) type error </EM>
<DD>Number is instantiated, but not to an integer.
</DL>
<H2>Examples</H2>
<PRE>
Success:
   % eclipse -g 10000
   [eclipse]: argc(N).
   N = 3
   yes.

Fail:
   % eclipse -g 10000
   [eclipse]: argc(2).
   no.

Error:
   argc('3').             (Error 5).



</PRE>
<H2>See Also</H2>
<A HREF="../../kernel/opsys/argv-2.html">argv / 2</A>
</BODY></HTML>
